package com.zc.angelica.controller;


import com.zc.angelica.entity.ResponseData;
import com.zc.angelica.entity.UserInfo;
import com.zc.angelica.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 用户信息(UserInfo)表控制层
 *
 * @author makejava
 * @since 2022-04-12 23:00:44
 */
@RestController
@RequestMapping("/userInfo")
public class UserInfoController {

    @Autowired
    private UserInfoService userInfoService;


    @GetMapping("/delUserInfo")
    public ResponseData selectAll(Long accountId) {
        return userInfoService.delUserInfo(accountId);
    }

    @GetMapping("/updateUserInfo")
    public ResponseData selectOne(UserInfo userInfo) {
        return userInfoService.updateUserInfo(userInfo);
    }


}

